using System;

namespace Curchy.PERTToolbox.PropertyGrid
{
	/// <summary>
	/// Use DisplayNameAttribute on a property to specify its DisplayName.	
	/// </summary>
	/// <remarks>
	/// Must use with PropertiesDeluxeTypeConverter to have effect.
	/// </remarks>
    [AttributeUsage(AttributeTargets.Property)]
	public class DisplayNameAttribute : Attribute
	{
	    private string displayName;
	    
		/// <summary>
		/// 
		/// </summary>
		/// <param name="displayName"></param>
		public DisplayNameAttribute(string displayName)
		{
		    this.displayName = displayName;
		}
		
		/// <summary>
		/// 
		/// </summary>
		public string DisplayName {
		    get {
		        return displayName;
		    }
		}
	}
}
